Algorithm eric programming